package com.purchase.ml.bean.req.prod;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.purchase.ml.consts.Constants;
import com.purchase.ml.entity.prod.SysCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author :zxm
 * @date :2021/2/25 18:43
 * @description :some description
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "创建分类model")
public class SysCategoryNewDto extends SysCategory implements Serializable { //todo：main: 继承对象只能是PageDto或者不继承

    private Long categoryId; //todo:无需参数

    private Integer state = Constants.NORMAL_STATE; //todo:无需参数

    /**
     * 目录名称
     */
    @ApiModelProperty(value = "目录名称",required = true)
    @NotBlank(message = "Nama kategori tidak boleh kosong")
    private String categoryName;

    /**
     * 索引ID
     */
    @ApiModelProperty(value = "索引ID",required = true)
    @NotNull(message = "Indeks aturan susunan tidak boleh kosong")
    private Integer index;
}
